import { formateTimestampToDate, Animator } from "../lib/index";

// console.log(formateTimestampToDate(new Date().getTime()));

let animator = new Animator(1000, function (p) {
  // let tx = -100 * Math.sin(2 * Math.PI * p),
  //   ty = -100 * Math.cos(2 * Math.PI * p);

  // console.log(tx, ty);
  console.log(p);
});
 animator.animate().then((pid) => {
    // console.log(pid);
 })
//  setTimeout(() => {
//   animator.cancel!()
//  },400)
